﻿using System;
using TeamLemonApp.Models;
using System.Linq;

namespace TeamLemonApp.DataPersisters
{
    public class CommentsDataPersister
    {
        private const string BaseServicesUrl = "http://arialwebapirecipe.apphb.com/api/";
        public static void AddCommentToRecipe(int recipeId, string sessionKey, CommentInfo comment)
        {
            HttpRequester.Post(BaseServicesUrl + "recipes/recipe/" + recipeId+ "/comment/"+ sessionKey, comment);
        }
    }
}
